<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   design_default
 * @package    Mage
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * Template for Mage_Page_Block_Html
 */
global $var_yttheme;
?>
<!DOCTYPE html>
<html xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
<head>
<meta name="format-detection" content="telephone=no">
<?php echo $this->getChildHtml('head') ?>
</head>
<body id="bd" class="<?php echo $var_yttheme->template ?> <?php if( $var_yttheme->getParam('layoutstyle') == 'fixed' ){echo "layout-boxed";}?> <?php if( $var_yttheme->getParam('layoutstyle') == '2' ){echo "layout-boxed";}?> <?php echo $this->getBodyClass();?>">
<?php echo $this->getChildHtml('after_body_start') ?>
    <div id="yt_wrapper" class="col-2-left">
    
        <!-- BEGIN: Header -->
		<div id="yt_header" class="yt-header wrap">
		     <?php echo $this->getChildHtml('header') ?>
		</div>
		<!-- END: Header -->
		
		<!-- BEGIN: content -->
        <div id="yt_content" class="yt-content wrap col2-left-layout">
        	
        	<?php echo $this->getChildHtml('breadcrumbs') ?>
        	
            <div class="yt-content-inner wrapper-inner">
				<?php if( Mage::getSingleton('cms/page')->getIdentifier() == 'home-left'  && 
				Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' ) { ?>
					<div class="static-top-home">
						<div class="container">
							<div class="row">
								<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('banner-top-home')->toHtml(); ?>
							</div>
						</div>
					</div>					
				<?php } ?>
				
				<div class="container">
					<div class ="row">
						
						<div id="yt_left" class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
							<div class="yt-left-wrap">
								<?php if( Mage::getSingleton('cms/page')->getIdentifier() == 'home-left'  && 
								Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' ) { ?>
									<?php echo $this->getChildHtml('megaMenuLeft') ?> 
									
									<div class="newletter-home newlt-left">
										<div class="new-static">
											<h2>
												Become A <span>Bright Insider</span><br>Don’s Miss Out On ... 25% OFF
											</h2>
											<p>Sign up for style tips<br>news and an exclusive offer</p>
										</div>
										<?php echo $this->getChildHtml('block-newsletter') ?>
									</div>
									<div class="static-image-left">
										<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('left-img-static-home-left')->toHtml(); ?>
									</div>
									<div class="static-image-left">
										<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('hotline-img-home-left')->toHtml(); ?>
									</div>
									<div class="static-image-left">
										<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('sale-img-home-left')->toHtml(); ?>
									</div>
								<?php } ?>
								<?php echo $this->getChildHtml('left') ?>
							</div>
						</div>
						
						<div id="yt_main" class="yt-main-right yt-main col-main col-lg-9 col-md-9 col-sm-8 col-xs-12">
							<div class="yt_main_inner">
								<?php echo $this->getChildHtml('global_notices') ?>
								<?php echo $this->getChildHtml('global_messages') ?>
								<?php echo $this->getTitle() ?> 
								
								<?php if( Mage::getSingleton('cms/page')->getIdentifier() == 'home-left'  && 
								Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' ) { ?>
									<div class="yt-slideshow yt-slideshow-right">
										<?php echo $this->getChildHtml('dynamicslideshow.list.default') ?> 
									</div>
									
									<div class="row banner-bottom banner-bottom-home-left">
										<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('banner-top-home-left')->toHtml(); ?>
									</div>
									<div class="tab-home-left">
										<?php echo $this->getChildHtml('content-tab-one') ?>
									</div>
									<div class="tab-home-left">
										<?php echo $this->getChildHtml('content-tab-two') ?>
									</div>
									
								<?php } ?>
								
								<?php echo $this->getChildHtml('content') ?>                                      	                        
							</div>
						</div>
						
						<?php if( Mage::getSingleton('cms/page')->getIdentifier() == 'home-left'  && 
						Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' ) { ?>
							<div class="banner-under-tab">
								<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('banner-under-tab')->toHtml(); ?>
							</div>
							
							<div class="base-products-clients-say">
								<div class="container">
									<div class="row">
										<div class="col-md-4 col-xs-6 base-product-1">
											<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('best-sale-home')->toHtml(); ?>	
										</div>
										<div class="col-md-4 col-xs-6 base-product-2">
											<?php echo $this->getChildHtml('latestblog'); ?>	
										</div>
										<div class="col-md-4 col-xs-12 clients-say">
											<div class="home-products">
												<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('what-client-says')->toHtml(); ?>
											</div>
										</div>
									</div>
								</div>
							</div>
							
							<div class="brand-products">
								<div class="container">
									<div class="row">
										<div class="col-md-12">
											<div class="wrap-brand">
												 <?php echo $this->getChildHtml('slider.list.footer'); ?>
											</div>
										</div>
									</div>
								</div>
							</div>
									
						<?php } ?>
						
					</div>
				</div>
             </div>
         </div>      
        <!-- END: content -->
        
        <!-- BEGIN: footer -->
        <div id="yt_footer" class="yt-footer wrap">
        	<?php echo $this->getChildHtml('footer') ?>
        </div>
        <!-- END: footer -->        
        
		<?php echo $this->getChildHtml('before_body_end') ?>
        <?php echo $this->getAbsoluteFooter() ?>
    </div>
	<!------------------------------------------------------------------------>
	<?php $homep = Mage::getSingleton('cms/page')->getIdentifier(); ?>
	<?php 
	if( $homep=='home-left' && $var_yttheme->getParam('showpopup') == 1 ){
		echo $this->getChildHtml('popup-newsletter');
	}
	?>
	<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('social-fixed')->toHtml(); ?>
	<!------------------------------------------------------------------------>
</body>
</html>